package com.mzy.datepackage.M2021.Nov.TwentyEight;

import lombok.Getter;
import lombok.Setter;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author mzy
 * @Date 2021/11/28 22:51
 * @Version 1.0
 */
@Getter
@Setter
public class Demo extends Object{
    private String name="1";
    private Integer age=2;

    public Demo() {
    }

    public Demo(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public static String ab="Demo +ab ";

    static {
        System.out.println(ab);
    }

    @Override
    public String toString() {
        return "Demo{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
